package com.enation.app.shop.front.policyInsurance.service.impl;

import com.enation.app.shop.core.goods.model.Goods;
import com.enation.app.shop.front.policyInsurance.service.InsurancePlanMapper;
import com.enation.framework.database.IDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InsurancePlanService implements InsurancePlanMapper {
    @Autowired
    private IDaoSupport iDaoSupport;
    @Override
    public int addInsurancePlanInfo(Goods goods) {
        this.iDaoSupport.update("es_goods",goods,"goods_id="+goods.getGoods_id());
        return 1;
    }
}
